package test.bigdata;

import java.sql.Connection;
import java.sql.DriverManager;

public class Conn
{
	private static Connection conn=null;
	static{
		try
		{
			Class.forName("com.mysql.jdbc.Driver");
			conn=DriverManager.getConnection("jdbc:mysql://localhost/testBigDatas?user=root&password=root");
		} catch (Exception e)
		{
			e.printStackTrace();
		}
	}
	
	public static Connection getInstance() throws Exception{
		return conn;
	}
}
